// components/myComponent/myComponent.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    name: String,
    age: {
      type: Number,
      value: 10
    },
    address: {
      province: String,
      city: String
    }

  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    changeValue() {
      this.triggerEvent('myEvent', {
        hobby: ['唱', '跳', 'rap', '篮球']
      })
    }
  },
  lifetimes: {
    ready() {
      console.log('---props---', this);
    }
  }
})